/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

/**
 *
 * @author Student
 */
public class Account {

    private int userID;
    private String username;
    private String accountType;
    private String name;
    private String email;
    private int valid = 0;

    public int getValid() {
        return valid;
    }

    public void setValid(int valid) {
        this.valid = valid;
    }

    /**
     *
     * @return
     */
    public String getAccountType() {
        return accountType;
    }

    /**
     *
     * @param accountType
     */
    public void setAccountType(String accountType) {
        this.accountType = accountType;
    }

    /**
     *
     * @return
     */
    public String getEmail() {
        return email;
    }

    /**
     *
     * @param email
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     *
     * @return
     */
    public String getName() {
        return name;
    }

    /**
     *
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     *
     * @return
     */
    public int getUserID() {
        return userID;
    }

    /**
     *
     * @param userID
     */
    public void setUserID(int userID) {
        this.userID = userID;
    }

    /**
     *
     * @return
     */
    public String getUsername() {
        return username;
    }

    /**
     *
     * @param username
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * Constructor Account
     *
     * @param userID
     * @param username
     * @param accountType
     * @param name
     * @param email
     */
    public Account(int userID, String username, String accountType, String name, String email) {
        this.userID = userID;
        this.username = username;
        this.accountType = accountType;
        this.name = name;
        this.email = email;
        this.valid = 1;
    }

    public Account(String username, String name, String email) {
        this.username = username;
        this.name = name;
        this.email = email;
    }

   
    
    
    
    @Override
    public String toString() {
        return "Account{" + "userID=" + userID + ", username=" + username + ", accountType=" + accountType + ", name=" + name + ", email=" + email + '}';
    }
}
